<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" 
      xmlns:ui="http://java.sun.com/jsf/facelets" 
      xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:c="http://java.sun.com/jsp/jstl/core">

<ui:composition>

  <!-- MODAL -->  
  <c:if test="#{empty modal or modal eq 'true'}">
  
  	  <c:if test="#{empty headerClass}">
    		<c:set var="headerClass" value="modal-header"/>
      </c:if>
      
      <c:if test="#{empty titleClass}">
    		<c:set var="titleClass" value="modal-title"/>
      </c:if>

	  <div class="#{headerClass}">
	  
	    <h3 class="#{titleClass}"> 
	    
	    	<ui:insert></ui:insert>
	    	
	    	<c:if test="#{empty close}">
	    		<a class="close" onclick="#{id}Modal.hide()"><span>&times;</span></a>
	    	</c:if>
	    	
	    	<c:if test="#{not empty close}">
	    		<a class="close" onclick="#{id}Modal.closeFunction(#{close},event)"><span>&times;</span></a>
	    		<!-- limpar -->
	    		<c:set var="close" value=""/>
	    	</c:if>
	    	
	    </h3>
	    
	  </div>
	  
  </c:if>
  
  <!-- NÃO MODAL -->
  <c:if test="#{modal eq 'false'}">
  
  	<c:if test="#{empty headerClass}">
    	<c:set var="headerClass" value="panel-heading"/>
    </c:if>
      
    <c:if test="#{empty titleClass}">
    	<c:set var="titleClass" value="panel-title"/>
    </c:if>
  
  	<div class="#{headerClass}">
	  
	    <h3 class="#{titleClass}"> 
	    	<ui:insert></ui:insert>
	    </h3>
	    
	</div>
  
  </c:if>
  
  <!-- limpar -->
  <c:set var="headerClass" value=""/>
  <c:set var="titleClass" value=""/>
  
</ui:composition>
   
</html>